Platform Explorer / Nuxeo Platform 5.8

Extension point permissionsVisibility

Documentation

Extension point to register permission visibility in user interface or override existing settings.

Example to define the default list of permissions that are manageable through the UI screens:

    <visibility>
        <item order="10" show="true">Read</item>
        <item order="50" show="true">ReadWrite</item>
        <item order="100" show="true">Everything</item>
    </visibility>

This list of options items will be displayed if no type specific settings are registered.

Example to define the default list of permissions that are specific to the Section document type:

    <visibility type="Section">
        <item order="10" show="true">Read</item>
        <item order="100" show="true">Everything</item>
    </visibility>

Note: the 'show' attribute defaults to 'true' and the 'order' attribute defaults to '0'.

Contribution Descriptors

  • Class: org.nuxeo.ecm.core.security.PermissionVisibilityDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-core-5.8.jar
    <extension point="permissionsVisibility" target="org.nuxeo.ecm.core.security.SecurityService">
    
        <visibility>
          <item order="10" show="true">Read</item>
          <item denyPermission="Write" order="50" show="true">ReadWrite</item>
          <item denyPermission="Remove" order="60" show="true">ReadRemove</item>
          <item order="100" show="true">Everything</item>
        </visibility>
    
      </extension>
  • nuxeo-webengine-blogs-5.8.jar
    <extension point="permissionsVisibility" target="org.nuxeo.ecm.core.security.SecurityService">
        <visibility type="BlogSite">
          <item order="200" show="true">Comment</item>
          <item order="200" show="true">Moderate</item>
        </visibility>
    
      </extension>
  • nuxeo-platform-publisher-core-contrib-5.8.jar
    <extension point="permissionsVisibility" target="org.nuxeo.ecm.core.security.SecurityService">
    
        <visibility type="Section">
          <item order="150" show="true">CanAskForPublishing</item>
        </visibility>
    
        <visibility type="SectionRoot">
          <item order="150" show="true">CanAskForPublishing</item>
        </visibility>
    
      </extension>
  • nuxeo-webengine-sites-core-contrib-5.8.jar
    <extension point="permissionsVisibility" target="org.nuxeo.ecm.core.security.SecurityService">
        <visibility type="Workspace">
          <item order="200" show="true">Comment</item>
          <item order="200" show="true">Moderate</item>
        </visibility>
        <visibility type="WebSite">
          <item order="200" show="true">Comment</item>
          <item order="200" show="true">Moderate</item>
        </visibility>
    
      </extension>